<template>
  <div>
    <div class="page-header">
      <div class="header-content">
        <div class="header-search">
          <div class="header-input">
            <i class="iconfont icon-sousuo"></i>
            <span>请输入商家或商品名称</span>
          </div>
        </div>
        <img class="capsule-img" src="@/assets/images/diy/capsule.png" alt="" />
      </div>
    </div>
    <div class="holo-place"></div>
  </div>
</template>

<script>
export default {
  name: "pageHeader",
  props: {
    propsData: {
      type: Object,
      default: {},
    },
  },
  data() {
    return {};
  },
  mounted() {},
  watch: {},
  computed: {},
  methods: {},
};
</script>

<style lang="scss" scoped>
.page-header {
  width: 376px;
  height: 44px;
  background: #ffffff;
  padding-top: 7px;
  position: fixed;
  top: -1px;
  left: 0;
  z-index: 511;
  margin: 0 !important;
  border-radius: 0 !important;
  pointer-events: none;
  .module-bg {
    width: 100%;
    height: 100%;
    z-index: -1;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 0 !important;
  }
  .header-content {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    position: relative;
    .capsule-img {
      width: 87px;
      height: 32px;
      position: absolute;
      right: 7px;
      top: 0;
      z-index: 12;
    }
    .header-search {
      width: calc(100% - 101px);
      font-size: 18px;
      font-weight: 600;
      color: #ffffff;
      text-align: center;
      position: absolute;
      right: 94px;
      top: 0;
      z-index: 11;
      height: 32px;
      line-height: 32px;
      display: flex;
      justify-content: center;
      align-items: center;
      .header-input {
        width: 90%;
        height: 32px;
        background: #f2f2f2;
        border-radius: 60px;
        display: flex;
        align-items: center;
        padding-left: 12px;
        color: #9b9b9b;
        .iconfont {
          // position: absolute;
          // left: 11px;
          // top: 4px;
          // z-index: 11;
          font-size: 13px;
        }
        span {
          height: 100%;
          line-height: 32px;
          margin-left: 5px;
          font-size: 14px;
          font-family: PingFang SC;
          font-weight: 400;
          color: #9b9b9b;
        }
      }
    }
  }
}
.holo-place {
  width: 100%;
  height: 42px;
}
.com-hover::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border: 1px dashed;
  border-color: #000000;
  z-index: 512;
  display: inline-block;
  pointer-events: none;
}
</style>
